package com.yykt.weshare.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200, "成功"),

    PARAMETER_ERROR(1001, "参数错误"),
    INTERNAL_ERROR(500, "服务器内部错误"),
    USERNAME_PASSWORD_ERROR(1002, "用户名或者密码不正确"),
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
